cmake_minimum_required(VERSION 3.0.0)
project(ljvm VERSION 0.1.0)

make_directory(build)

#include(CTest)
#enable_testing()


include_directories(${PROJECT_SOURCE_DIR}/src/cpu)
include_directories(${PROJECT_SOURCE_DIR}/src/share/vm)

file(GLOB_RECURSE INCLUDE_FILES "${PROJECT_SOURCE_DIR}/src/share/vm/*.h")

file(GLOB_RECURSE source_cpp  "${PROJECT_SOURCE_DIR}/src/share/vm/*.cpp")

message("SOURCE_FILES  ===>------${source_cpp}-----")
message("INCLUDE_FILES ===>------${INCLUDE_FILES}-----")

add_executable(ljvm main.cpp ${source_cpp})

set(CPACK_PROJECT_NAME ${PROJECT_NAME})
set(CPACK_PROJECT_VERSION ${PROJECT_VERSION})
include(CPack)
